﻿# -*- coding: utf-8 -*-
for i in range(1, 201):
    jk = str(i * i)
    if len(jk) > 2:
        if jk == jk[::-1]:
            print(jk)